import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

//定义数据模块
export const useZxhStore = defineStore('zxh', () => {

    //定义需要管理的数据
    const zxhPath = ref([])

    //保存用户信息
    function save_zxhPath(u: any) {
        zxhPath.value = u;
    }
    //删除用户信息
    function remove_zxhPath() {
        zxhPath.value = [];
    }

    return { zxhPath, save_zxhPath, remove_zxhPath }

}, { persist: true })